package com.ndbg.demo.model;



import com.ndbg.demo.utils.TreeUtil;

import java.util.List;

public class BuildTreeInfo implements TreeUtil.MyTreeNode {

    private Long id;

    private Long parentId;

    private String name;

    private List<BuildTreeInfo> child;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public Long getParentId() {
        return parentId;
    }


    @Override
    public void setChildren(List<? extends TreeUtil.MyTreeNode> children) {
        this.child = (List<BuildTreeInfo>) children;
    }

    public BuildTreeInfo(Long id, Long parentId, String name) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
    }
}
